#include<stdio.h>
void main(){
	int sum=0,i;
	for(i=1;i<=100;i++){
		if(i%10==3)
			continue;
		
		sum+=i;
	}
	printf("sum=%d\n",sum);
} 
